package com.eastfair.venueservice.dto;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.venueservice.enumeration.WorkOrderOperationRecordOperationRecordTypeEnum;
import com.eastfair.venueservice.enumeration.WorkOrderOperationRecordDisposalResultEnum;
import com.eastfair.venueservice.enumeration.WorkOrderOperationRecordOperationTypeEnum;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 工单操作记录
 * </p>
 *
 * @author linan
 * @since 2022-11-09
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "WorkOrderOperationRecordPageQuery", description = "工单操作记录")
public class WorkOrderOperationRecordPageQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 工单编号
     */
    @ApiModelProperty(value = "工单编号")
    private String workOrderNo;
    /**
     * 操作环节类型 #{CREATE:生成工单;ACCEPT:接收工单;DISPOSAL:处理工单;FINISH:工单完结}
     */
    @ApiModelProperty(value = "操作环节类型 #{CREATE:生成工单;ACCEPT:接收工单;DISPOSAL:处理工单;FINISH:工单完结}")
    private WorkOrderOperationRecordOperationTypeEnum operationType;
    /**
     * 人员id
     */
    @ApiModelProperty(value = "人员id")
    private Long userId;
    /**
     * 人员姓名
     */
    @ApiModelProperty(value = "人员姓名")
    private String userName;
    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门id")
    private Long orgId;
    /**
     * 部门名称
     */
    @ApiModelProperty(value = "部门名称")
    private String orgName;
    /**
     * 附件url
     */
    @ApiModelProperty(value = "附件url")
    private String fileUrl;
    /**
     * 上一环节完成时间
     */
    @ApiModelProperty(value = "上一环节完成时间")
    private LocalDateTime lastLinkFinishTime;
    /**
     * 备注信息
     */
    @ApiModelProperty(value = "备注信息")
    private String remark;
    /**
     * 处理结果 #{SETUP_COMPLETE:安装完毕;NO_INSTALLATION_REQUIRED:无需安装;TROUBLE_SHOOTING:故障维修;DAMAGE_REPAIR:损坏维修;FAILURE_REPLACEMENT:故障更换;REPLACE_IF_DAMAGED:损坏更换;ARTIFICIAL_DAMAGE:人为损坏（赔偿）;SITE_ACCEPTANCE_IS_QUALIFIED:场地验收合格;UNQUALIFIED_SITE_DAMAGE:场地损坏不合格;FINISH:完成}
     */
    @ApiModelProperty(value = "处理结果 #{SETUP_COMPLETE:安装完毕;NO_INSTALLATION_REQUIRED:无需安装;TROUBLE_SHOOTING:故障维修;DAMAGE_REPAIR:损坏维修;FAILURE_REPLACEMENT:故障更换;REPLACE_IF_DAMAGED:损坏更换;ARTIFICIAL_DAMAGE:人为损坏（赔偿）;SITE_ACCEPTANCE_IS_QUALIFIED:场地验收合格;UNQUALIFIED_SITE_DAMAGE:场地损坏不合格;FINISH:完成}")
    private WorkOrderOperationRecordDisposalResultEnum disposalResult;
    /**
     * 操作记录类型 #{CREATE:生成工单;ACCEPT:接收工单;DISPOSAL:处理工单;FINISH:工单完结;REVOKE:撤销工单;REASSIGN:重新派工;CANCEL:作废工单}
     */
    @ApiModelProperty(value = "操作记录类型 #{CREATE:生成工单;ACCEPT:接收工单;DISPOSAL:处理工单;FINISH:工单完结;REVOKE:撤销工单;REASSIGN:重新派工;CANCEL:作废工单}")
    private WorkOrderOperationRecordOperationRecordTypeEnum operationRecordType;

}
